package com.hospital.hospitalpatientservice.controller;


import com.hospital.common.vo.ResultEntity;
import com.hospital.hospitalpatientservice.entity.Advice;
import com.hospital.hospitalpatientservice.entity.Diagnosis;
import com.hospital.hospitalpatientservice.service.IAdviceService;
import com.hospital.hospitalpatientservice.service.IDiagnosisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 诊断 前端控制器
 * </p>
 *
 * @author handingfei
 * @since 2020-10-27
 */
@RestController
@RequestMapping("/diagnosis")
public class DiagnosisController {

    @Autowired
    private IDiagnosisService iDiagnosisService;

    @RequestMapping("/list")
    public ResultEntity list(){

        List<Diagnosis> list = iDiagnosisService.list();

        return ResultEntity.ok("200","成功",list);
    }
}

